function tpl(type) {
  switch (type) {
    case "tab":
      return '<div class="nav-item {{ current }}">{{tab}}</div>';
    case "page":
      return '<div class="page-item {{ active }}">{{page}}</div>';
    default:
      break;
  }
}
